//
// Created by fanghr on 17-12-30.
//

#ifndef PROJECT_GLOBAL_VAR_H
#define PROJECT_GLOBAL_VAR_H

#include "../../include.h"
#include "rw_lock.h"

namespace cam_global {
    struct mat_pack_t {
        cv::Mat mat;
        rw_lock lock;
    };

    struct point_pack_t {
        cv::Point2f point;
        rw_lock lock;
    };

    struct num_pack_t {
        int var;
        rw_lock lock;
    };

    struct {
        mat_pack_t left, middle, right;
    } raw;

    struct {
        mat_pack_t disparity;
    } disp;

    struct {
        mat_pack_t left, middle, right;
    } distort;

    struct {
        point_pack_t points[5];
        num_pack_t num;
    } gesture;

}
#endif //PROJECT_GLOBAL_VAR_H
